package com.didi.gulimall.common.constant;

/**
 * @Author 10626
 * @Create 2021/5/30 16:25
 */
public class OrderConstant {
    public static final String USER_ORDER_TOKEN_PREFIX = "order:token:";
    public static final Integer DELETE = 1;
    public static final Integer NOT_DELETED = 0;
    public static final Integer PC_ORDER = 0;
    public static final Integer APP_ORDER = 1;
    public static final String ALIPAY_PAID_SUCCESSFULLY = "TRADE_SUCCESS";
    public static final String ALIPAY_PAID_TRADING_CLOSED = "TRADE_FINISHED";
    public static final String ORDER_SESSIONS_CACHE_PREFIX = "order:seckill:";
    public static final Integer BUY = 0;
    public static final Integer SECKILL = 1;
    public enum  PaymentType {
        /**
         *支付方式
         */
        ALIPAY(2,"支付宝"),
        WECHAT(2,"微信");
        private Integer code;
        private String msg;

        PaymentType(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }


}
